package com.playball.lottery.util;

import com.playball.lottery.R;

/**
 * 战绩图片互转相关工具类
 * 
 * @author Administrator
 * 
 */
public class LevelUtil {

	/**
	 * 获取战绩图片
	 * @param intPicId 战绩ID
	 * @return 战绩图片
	 */
	public static int getLevelIcon(int intPicId) {
		int level_icon = 0;
		if (intPicId == 0) {
			level_icon = R.drawable.transparent;
		} else 
		if (intPicId == 1) {
			level_icon = R.drawable.level_markstar1;
		} else if (intPicId == 2) {
			level_icon = R.drawable.level_markstar2;
		} else if (intPicId == 3) {
			level_icon = R.drawable.level_markstar3;
		} else if (intPicId == 4) {
			level_icon = R.drawable.level_markstar4;
		} else if (intPicId == 5) {
			level_icon = R.drawable.level_markstar5;
		} else if (intPicId == 6) {
			level_icon = R.drawable.level_markstar6;
		} else if (intPicId == 7) {
			level_icon = R.drawable.level_markstar7;
		} else if (intPicId == 8) {
			level_icon = R.drawable.level_markstar8;
		} else if (intPicId == 9) {
			level_icon = R.drawable.level_markstar9;
		} else if (intPicId == 10) {
			level_icon = R.drawable.level_markstar10;
		} else if (intPicId == 11) {
			level_icon = R.drawable.level_markstar11;
		} else if (intPicId == 12) {
			level_icon = R.drawable.level_markstar12;
		} else if (intPicId == 13) {
			level_icon = R.drawable.level_markstar13;
		} else if (intPicId == 14) {
			level_icon = R.drawable.level_markstar14;
		} else if (intPicId == 15) {
			level_icon = R.drawable.level_markstar15;
		} else if (intPicId == 16) {
			level_icon = R.drawable.level_markstar16;
		} else if (intPicId == 17) {
			level_icon = R.drawable.level_markstar17;
		} else if (intPicId == 18) {
			level_icon = R.drawable.level_markstar18;
		} else if (intPicId == 19) {
			level_icon = R.drawable.level_markstar19;
		} else if (intPicId == 20) {
			level_icon = R.drawable.level_markstar20;
		}
		
		return level_icon;
	}

}
